package com.hdu.dwh.service;

import com.hdu.dwh.dtos.SubjectTableDto;
import com.hdu.dwh.dtos.TablePageDto;
import com.hdu.dwh.pojos.SubjectTable;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.dwh.vos.TreeVo;
import com.hdu.dwh.results.ResponseResult;

/**
 * <p>
 * 主题数据表 服务类
 * </p>
 *
 * @author bobo
 * @since 2025-04-08
 */
public interface ISubjectTableService extends IService<SubjectTable> {

    ResponseResult add(SubjectTableDto subjectTableDto);

    ResponseResult getDetilById(Long id);

    long countTablesByHierarchy(Integer hierarchy);

    ResponseResult detilPage(TablePageDto tablePageDto);
    TreeVo getTreeVo();

    ResponseResult getTable(Long databaseId, String databaseName, Integer hierarchy);

    ResponseResult tree();

    boolean deleteByDatabaseId(Long id);

    ResponseResult deleteById(Long id);
}
